import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as Icons from '@element-plus/icons-vue'
import '@/assets/iconfont/iconfont.css'

axios.defaults.baseURL = process.env.VUE_APP_SERVER //全局配置地址，对应.env.dev文件

const app = createApp(App);
app.use(store).use(router).use(ElementPlus)
    .mount('#app');

//全局使用图标
const icons: any = Icons;

for (const i in icons) {
    app.component(i, icons[i]);
}